package test00.test06;

import test07.t04.Studunt;

/**
 * @Author lzp
 * @Date 2024-04-12
 */
public class Test02 {
    public static void main(String[] args) {
        Studunt stu1 = new Studunt("Zs",18);
        Studunt stu2 = new Studunt(null,18);

        if (stu1.getName() == null){
            System.out.println("匿名");
        }else {
            System.out.println(stu1.getName().toLowerCase());
        }

        if (stu2.getName() == null){
            System.out.println("匿名");
        }else {
            System.out.println(stu2.getName().toLowerCase());
        }
    }
}
